<div id="left_side">
	<div id="activity_archives">
		<div class="header">
			<h1><?php echo $dataResults->activity_subject;?></h1>
			<div class="post">
				<?php if($dataResults->activity_date_end > date('Y-m-d H:i:s')):?>
					หมดเขตวันที่ <?php echo date('d/m/Y',strtotime($dataResults->activity_date_end));?>
				<?php else:?>
					<?php if(strtotime($dataResults->activity_auth_date) < time()):?>
						กิจกรรมนี้สิ้นสุดแล้ว
					<?php else:?>
						ยืนยันสิทธิ์ภายในวันที่ <?php echo date('d/m/Y H:i:s',strtotime($dataResults->activity_auth_date));?>
					<?php endif;?>
				<?php endif;?>
			</div>
			<?php echo $module_facebook_plugins_share;?>
		</div>
		<?php echo exec_image(array(
			'folder' => 'activity',
			'dimension' => '660x282',
			'file_name' => @$dataResults->image->activity_file_name.'.'.@$dataResults->image->activity_file_ext,
			'alt' => ''.@$dataResults->activity_subject.'',	
			'title' => ''.@$dataResults->activity_subject.''	
			)
		);?>
		<div class="info">
			<?php echo $dataResults->activity_detail;?>
		</div>
		<div id="activity_archive_comment">
			<h2 class="tab tabBlue">แสดงความคิดเห็น</h2>
			<!--Facebook Comment-->
			<?php if($dataResults->activity_id <= 29228):?>
				<div class="fb-comments" data-href="http://activity.you2play.com/content/<?php echo $dataResults->activity_id;?>/?.&fb" data-width="640" data-num-posts="10"></div>		
			<?php elseif($dataResults->activity_id > 29238):?>
				<div class="fb-comments" data-href="http://activity.you2play.com/archives/<?php echo $dataResults->activity_id;?>" data-width="640" data-num-posts="10"></div>				
			<?php else:?>
				<?php echo $module_facebook_plugins_comment;?>
			<?php endif;?>
		</div>	
	</div>
</div>
<div id="right_side">
	<!--Module-->
	<?php
	if(!empty($module))
	foreach($module as $value):?>
	<?php echo $value;?>
	<?php endforeach;?>
</div>
<script type="text/javascript" language="javascript">
    (function($) {
        /*whatever jQuery stuff*/
        $(function(){
			//Colorbox
			$('a[rel="gallery"]').colorbox();
        });
    })(jQuery);
</script>